package ${pPackage}.mapper;

import org.apache.ibatis.annotations.Param;
import ${pPackage}.model.${ClassName}DO;
import java.util.List;
<#if table.primaryKeyType == 'Date'>
import java.util.Date;
</#if>
<#if table.primaryKeyType == 'BigDecimal'>
import java.math.BigDecimal;
</#if>

/**
 * @Description ${ClassName}Mapper
 * @Author ${author}
 * @Date ${createDate}
 */
public interface ${ClassName}Mapper {

        int insertSelective(${ClassName}DO ${ClassName?uncap_first}DO);

        ${ClassName}DO selectByPrimaryKey(@Param("${table.primaryKeyExt}") ${table.primaryKeyType} ${table.primaryKeyExt});

        int updateByPrimaryKeySelective(${ClassName}DO ${ClassName?uncap_first}DO);

        int deleteByPrimaryKey(@Param("${table.primaryKeyExt}") ${table.primaryKeyType} ${table.primaryKeyExt});

        int batchDeleteByIds(@Param("ids") List<${table.primaryKeyType}> ids);

        List<${ClassName}DO> selectList(@Param("${table.primaryKeyExt}") ${table.primaryKeyType} ${table.primaryKeyExt});

}
